<?php
class F{
	private static $classlist=array();
    public static function M($class){      
        if(!isset(static::$classlist[$class])){
        	$classname = $class.'Model';
           static::$classlist[$class] = new $classname();
        }
        return static::$classlist[$class];
    }
}